package com.ruiyian.bridge.project.enums;


/**
 * 设备类型
 */
public enum DeviceTypeEnum {

	MMH2O(1,"静力沉降"),
	DISTANCE(2,"激光测距"),
	DIPMONITOR(3,"倾角"),
	CRACKS(4,"裂缝"),
	TEMPERATURE(5,"温度传感器"),
	CABLEVIBRATION(6,"索力加速度传感器"),
	WEIGHT(7,"车辆重量传感器"),
	VIBRATIONACCELERATION(8,"振动加速度传感器");

	private Integer type;

	private String desc;

	private DeviceTypeEnum(Integer type, String desc) {
		this.type = type;
		this.desc = desc;
	}

	public static DeviceTypeEnum getEm(Integer type){
		for(DeviceTypeEnum d:DeviceTypeEnum.values()){
			if(d.getType()==type){
				return d;
			}
		}
		return null;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}


	public Integer getType() {
		return type;
	}


	public void setType(Integer type) {
		this.type = type;
	}



}
